      FXParticleIterator    C:\Users\KatachiHome\AppData\Roaming\MAXON\CINEMA 4D R13_05DFD2A0\plugins\DPIT Plants & Effex 2.0\res\help\EN\Effex\fx_api_classes_particles_fxparticleiterator.html   a       `                                                                                                                                                                                                                                                                                                                                                                                                   x   default.tif       
           Object Header    The particle iterator allows you to browse particles of a specific particle group's subgroup type.
<br>It natively supports multiple processors so you don't have to worry about it yourself.
<br></br>           &[code]FXParticle* GetParticle (void);    |<b>Returns</b><br>
The current particle.
<br></br>
<b>Parameters</b><BR>
<i>const int cpu</i>: <br>
the current cpu thread.                   +[code]FXParticle* GetFirstParticle (void);    <b>Returns</b><br>
The first particle for the given cpu.
<br></br>
<b>Parameters</b><BR>
<i>const int cpu</i>: <br>
the current cpu thread.                   *[code]FXParticle* GetLastParticle (void);    <b>Returns</b><br>
The last particle for the given cpu.
<br></br>
<b>Parameters</b><BR>
<i>const int cpu</i>: <br>
the current cpu thread.                   P[code]bool Init (FXParticleGroup* group, const ParticleFactoryTypes m_factory);   <b>Returns</b><br>
true if the iterator was initialised successfully.
<br></br>
<b>Parameters</b><BR>
<i>FXParticleGroup* group</i>: <br>
Pass the particle group containing the particles to iterate.
<br></br>
<i>const ParticleFactoryTypes m_factory</i>: <br>
The particle subgroup type.
<br></br>
<i>const int cpus</i>: <br>
Pass the amount of cpu threads you will be using for iterating particles.                   [code]void Restart (void);    This will reset the iterator for the given cpu.
<br></br>
<b>Parameters</b><BR>
<i>const int cpu</i>: <br>
the cpu thread to reset the iterator for.                   [code]bool SetNext (void);    Steps the iterator to get the next iterator. Use for forward stepping.
<br></br>
<b>Returns</b><br>
true if the iterator has been incremented.
<br></br>
<b>Parameters</b><BR>
<i>const int cpu</i>: <br>
the current cpu thread to increment the iterator for.                   [code]bool SetPrev (void);   Steps the iterator to get the previous iterator. Use for backward stepping.
<br></br>
<b>Returns</b><br>
true if the iterator has been decremented.
<br></br>
<b>Parameters</b><BR>
<i>const int cpu</i>: <br>
the current cpu thread to decrement the iterator for.                  ![code]void Offset (long offset);    Offsets the iterator to a user defined position. This is currently private.
<br></br>
<b>Parameters</b><BR>

<i>const long offset</i>: <br>
the iterator offset.
<br></br>
<i>const int cpu</i>: <br>
the current cpu thread to offset the iterator for.               	    %[code]bool OffsetSafe (long offset);   KOffsets the iterator to a user defined position.
<br></br>
<b>Returns</b><br>
true if the offset operation was successful and the resulting iterator is valid.
<br></br>
<b>Parameters</b><BR>
<i>const long offset</i>: <br>
the iterator offset.
<br></br>
<i>const int cpu</i>: <br>
the current cpu thread to offset the iterator for.               
    ![code]bool IsValid (void) const;    :<b>Returns</b><br>
true if the current iterator is valid.                   /[code]static FXParticleIterator* Alloc (void);    Allocates the iterator. You can use AutoAlloc for a scope based allocation.
<br></br>
<b>Returns</b><br>
the FXParticleIterator. The user owns the pointed object.                   1[code]static void Free (FXParticleIterator*& p);    Frees a previously allocated FXParticleIterator.
<br></br>
<b>Parameters</b><BR>
<i>FXParticleIterator*&</i>: <br>
Pass the FXParticleIterator to free.                                                             	      
   	      
      